package com.mall.biz.trade.impl.o2o.incluce;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Service;

import com.mall.biz.trade.O2OTradeBiz;
import com.mall.dto.TradePriceAndBuyCountDTO;
import com.mall.pojo.Trade;
import com.mall.web.util.MoneyUtil;

@Service
public class YuezhifuTradeImpl implements O2OTradeBiz {

	@Override
	public TradePriceAndBuyCountDTO pack4PirceAndBuyCount(HttpServletRequest request, Integer type, Long price,
			Integer buyCount, Long parentId) {
		TradePriceAndBuyCountDTO tradePriceAndBuyCountDTO = new TradePriceAndBuyCountDTO();
		tradePriceAndBuyCountDTO.setPrice(price);
		tradePriceAndBuyCountDTO.setBuyCount(1);
		return tradePriceAndBuyCountDTO;
	}

	@Override
	public Boolean afterSuccInsert(HttpServletRequest request, Trade trade) {
		// TODO Auto-generated method stub
		return true;
	}

	@Override
	public Boolean afterErrorInsert(HttpServletRequest request, Trade trade) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Boolean beforeInsert(HttpServletRequest request, Trade trade) {
		// TODO Auto-generated method stub
		return null;
	}

}
